package example.constant;

/**
 * 返回code枚举
 * Created by zhangshi on 2017/4/17.
 */
public enum ResponseEnum {
    SUCCESS("0", "OK"),
    CHECK_VOID("20", "查询结果为空"),
    USERNAME_ERROR("21", "该用户名已经存在！"),
    PAYMONEY_ERROR("22", "充值金额不能为负！"),
    NOTENOUGHMONEY_ERROR("23", "余额不足！"),
    PASSWORDCHECK_ERROR("24", "密码校验失败"),

    PARAMETER_ERROR("998", "参数错误"),
    SYSTEM_ERR("999", "系统内部错误");

    private String code;
    private String message;

    ResponseEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
